package demo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-09-28  09:12
 */
public class Vehicle {
    public double speed;
    public String kind;
    public String color;

    public void setSpeed(int speed) {
        this.speed = speed;
        System.out.println("车速为为：" + speed);
    }

    public void setKind(String kind) {
        this.kind = kind;
        System.out.println("车的种类为：" + kind);
    }

    public void setColor(String color) {
        this.color = color;
        System.out.println("车的颜色为：" + color);
    }
}
